<%@ Page Language="VB" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="false" 
CodeFile="Brokers.aspx.vb" Inherits="Admin_Brokers" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table cellpadding="0" cellspacing="0" width="580" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Brokers: 
            <asp:Label ID="Results_lbl" runat="server"></asp:Label></td>
        <td align="right" style="height: 16px;"> 
            <asp:LinkButton ID="Add_btn" runat="server" ForeColor="Black"
                TabIndex="11" Font-Underline="True">Add New Broker</asp:LinkButton></td>
        </tr>
    </table>
        
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 580px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="12" AllowSorting="True" AllowPaging="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="broker_cd" ReadOnly="True" Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Name" DataField="broker_desc">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Start" DataField="broker_start_dt" DataFormatString="{0:dd/MM/yyyy}">
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Width="85px" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Right" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="End" DataField="broker_end_dt" DataFormatString="{0:dd/MM/yyyy}">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Right" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="85px" />
                    </asp:BoundColumn>
                    <asp:ButtonColumn CommandName="Providers" Text="Providers" Visible="False">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Width="70px" />
                    </asp:ButtonColumn>
                    <asp:ButtonColumn CommandName="Edit" Text="Edit">
                        <HeaderStyle Width="40px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="45px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black">Delete</asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender
                                ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:TemplateColumn>
                    <asp:ButtonColumn CommandName="View" Text="View">
                        <HeaderStyle Width="40px" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                </Columns>
            </asp:DataGrid></td></tr>
    </table>        
    <asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
</asp:Content>

